Repository navigation
Make the Pet Trainer Bead take only 6-star pets - #3880
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 8 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
5ff7b79 to
f8e1657
Compare
|
The red Generated by Claude Code |
|
Review: MERGE-WITH-NOTE Fixed: none needed in this PR's own commit (
Left
Stack note: this branch also carries the commits of #3865, #3855 and #3867, which are still open. Their comments still name a source ( Screenshots: none. The refusal is visible to the player. Add "Cannot put NosMate in the bead." after using the Pet Trainer Bead (8570) on a 5-star pet, and the plain Pet Bead refusing a 6-star pet, on this branch, plus master accepting the 5-star pet into 8570. 🤖 Generated with Claude Code Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014gSmkVYHFq6wdFRBtmzrW5
Rebased on the migration stack and regenerated the AddPetTrainerBead migration. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CUfJ46iekh4rbiCyoTamtn
f8e1657 to
8e1606e
Compare
Fixes #3281
What changes for the player
CanNotPutNosmateInBead); the pet and the bead stay as they were. Its description reads "Can only contain 6-star pets."No pet can reach 6 stars yet: pets start at 1 to 5 stars and evolution does not exist, so until it does the Trainer Bead refuses every pet. That matches the client, where only an evolved pet fits in it.
Changes
Item.HoldsOnlyTopStarPets: a new boolean column (migrationAddPetTrainerBead, additive with afalsedefault). Item.dat gives both beads the same box effect, so nothing else tells them apart.PetTrainerBeads+PetTrainerBeadParserinNosCore.Parserset the column on 8570 and 8581; it updates rows in place, so re-running the parser is safe. Logged through the newPET_TRAINER_BEADS_PARSEDkey.NosMateBeadHandlerchecks the pet'sStarRatingagainst the bead before asking or storing.Keeping a pet's rating while it is inside a bead is #3875 and is not touched here.
Tests
NosMateBeadHandlerTests: 13 passed, 0 failed. New: a Trainer Bead refuses a 5-star pet, takes a 6-star pet, and a plain Pet Bead refuses a 6-star pet.PetTrainerBeadParserTests(new): 2 passed, 0 failed.NosCore.Database.TestsMigrationTests: 1 passed.dotnet build NosCore.sln: 0 warnings, 0 errors.Client check
Tester with a level 7 Chicken (pet 333) out, its
StarRatingset in theMatetable; the pet is selected and the bead double-clicked (the client asks "Use the item." first). The branch ran its own parser so 8570/8581 carry the new column. This branch includes the commits of the PRs it is stacked on.Manual test plan
Added under "NosMate beads" in
documentation/manual-test-plan.md(run the parser first):$CreateItem 8570) and confirm: "Cannot put NosMate in the bead." shows, the pet stays and the bead stays empty"StarRating"to 6 in the"Mate"table, log in and use the Pet Trainer Bead on it: the pet goes into the bead as with a Pet BeadGenerated by Claude Code